/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.entity;

import java.io.Serializable;
import java.util.Date;
import org.hibernate.validator.constraints.Length;

import cn.mcsys.myadmin.common.persistence.DataEntity;

/**
 * 航展公司票务Entity
 * @author leopold
 * @version 2018-09-13
 */
public class AirTickets implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private Long id;
	private String ticketDate;		// 票务时间
	private Integer parType;		// 票面类型0个人票,1长者学生儿童票
	private Integer ticketType;		// 票种(证件类型:0身份证,1回乡证,2台胞证,3外国人护照)
	private String ticketNumber;		// 证件号码（电子票）或票面流水号和随机验证码（实物票）
	private String phone;			// 电话号码
	private Integer status;			//判断是否过期(0:未过期,-1:过期)
	private Date createDate;
	private String delFlag;
	private String note;		// 备注
	
	public AirTickets() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTicketDate() {
		return ticketDate;
	}

	public void setTicketDate(String ticketDate) {
		this.ticketDate = ticketDate;
	}

	public Integer getParType() {
		return parType;
	}

	public void setParType(Integer parType) {
		this.parType = parType;
	}
	
	public Integer getTicketType() {
		return ticketType;
	}

	public void setTicketType(Integer ticketType) {
		this.ticketType = ticketType;
	}
	
	@Length(min=0, max=255, message="证件号码（电子票）或票面流水号和随机验证码（实物票）长度必须介于 0 和 255 之间")
	public String getTicketNumber() {
		return ticketNumber;
	}

	public void setTicketNumber(String ticketNumber) {
		this.ticketNumber = ticketNumber;
	}
	
	@Length(min=0, max=64, message="备注长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}